package com.xiaowan.user.controller;

import com.xiaowan.apis.user.CertificationInfoControllerApi;
import com.xiaowan.model.common.dtos.ResponseResult;
import com.xiaowan.model.user.dtos.CertificationInfoDto;
import com.xiaowan.user.service.CertificationInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 实现功能：实名认证
 *
 * @author 作者[admin]
 * @version 1.0.00 2023-04-10 11:20
 */
@RestController
@RequestMapping("/certification")
public class CertificationInfoController implements CertificationInfoControllerApi {

    @Autowired
    private CertificationInfoService certificationInfoService;
    @Override
    @PostMapping("/list")
    public ResponseResult loadListByStatus(@RequestBody CertificationInfoDto dto) {
        return certificationInfoService.loadListByStatus(dto);
    }

    @Override
    @PostMapping("/auto")
    public ResponseResult AutoUpdateStatus( @RequestBody CertificationInfoDto dto) {
        return certificationInfoService.AutoUpdateStatus(dto);
    }
}
